#{extends 'CRUD/layout.html' /}
#{set title:messages.get('nosologyanalysis.add') /}

<div id="crudBlank" class="${type.name}">

    <h2 id="crudBlankTitle">&{'nosologyanalysis.add'}</h2>

    <div class="objectForm">
    #{form action:@create(), enctype:'multipart/form-data'}
        #{crud.form fields:['analysisId', 'multyplier', 'nosology']}
        	#{crud.custom 'analysisId'}
	        	<label for="${analysisId}">&{'analysisId'}</label>
 		     	#{select 'object.analysisId', items:models.Analysis.findAll(), valueProperty:'analysisId', 
		       		labelProperty:'analysisName', value:object.analysisId, id:'analysisSelector' /}
		   #{/crud.custom}
        #{/crud.form}
        <p class="crudButtons">
            <input type="submit" name="_save" value="&{'crud.save', type.modelName}" />
            <input type="submit" name="_saveAndContinue" value="&{'crud.saveAndContinue', type.modelName}" />
            <input type="submit" name="_saveAndAddAnother" value="&{'crud.saveAndAddAnother', type.modelName}" />
        </p>
    #{/form}
    </div>

</div>